<?php

function build_uri_param_line(stdClass $param_data) {
    return module_u_search::SEARCH_PARAM_STARTS_WITH . $param_data->id .
           module_u_search::SEARCH_PARAM_ID_VAL_SEPERATOR . $param_data->option;
}

 function regenerate_url_for_paging(array $url_params_data_object){        
        $url_tail = NULL;
        if(count($url_params_data_object)){
            $url_tmp_tails = array();
            foreach($url_params_data_object as $up){
                $url_tmp_tails[] = build_uri_param_line($up);
            }
            $url_tail = implode("/", $url_tmp_tails);
        }
        return $url_tail;
}

?>
